import Vue from 'vue'
import VueRouter from 'vue-router'
import Frist from '../router-mode/Frist.vue'
import Second from '../router-mode/Second.vue'
import Third from '../router-mode/Third.vue'

Vue.use(VueRouter)

//配置路由规则
const routes = [
  {
    path: '/',
    name: 'Frist',
    component: Frist
  },
  {
    path: '/second',
    name: 'Second',
    component: Second
  },
  {
    path: '/third',
    name: 'Third',
    component: Third
  },


]

const router = new VueRouter({
  //修改router-link添加的类名名字
  // linkActiveClass: 'aa',
  // linkExactActiveClass: 'bb',
  // mode: 'hash',
  routes
})

export default router